﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace FinalGame
{
    public struct VertexPositionColorNormal
    {
        public Vector3 Position;
        public Color Color;
        public Vector3 Normal;
       
        public static VertexElement[] VertexElements = 
        {
            new VertexElement(0,0,VertexElementFormat.Vector3,VertexElementMethod.Default,VertexElementUsage.Position,0),
            new VertexElement(0,sizeof(float)*3,VertexElementFormat.Color,VertexElementMethod.Default,VertexElementUsage.Color,0),
            new VertexElement(0,sizeof(float)*3+4, VertexElementFormat.Vector3,VertexElementMethod.Default,VertexElementUsage.Normal,0),
           
        };
        public static int SizeInBytes = sizeof(float) * (3 + 1 + 3);
       // public readonly static VertexDeclaration VertexDeclaration = new VertexDeclaration(GraphicsDevice, VertexElements);
        
    }
}
 